package com.scu.hotelsystem.dao;

import com.scu.hotelsystem.pojo.RoomBusiness;
import com.scu.hotelsystem.util.RoomOccupyResult;
import com.scu.hotelsystem.util.search.RoomBusinessSearch;
import com.scu.hotelsystem.util.search.RoomOccupySearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomBusinessDao {
    public int addRoomBusiness(@Param("roomBusiness") RoomBusiness roomBusiness);

    List<RoomBusiness> searchRoomBusinessList(@Param("roomBusinessSearch") RoomBusinessSearch roomBusinessSearch,
                                              @Param("cid") int cid, @Param("index") int index, @Param("limit") int limit);

    int deleteRoomBusiness(@Param("idList") int[] idList);

    RoomBusiness searchRoomBusinessById(@Param("id") int id);

    int updateRoomBusiness(@Param("roomBusiness") RoomBusiness roomBusiness);

    int bookToStay(@Param("idList") int[] idList);

    List<RoomOccupyResult> searchRoomOccupyList(@Param("room") RoomOccupySearch roomOccupySearch, @Param("index") int index, @Param("limit") int limit);
}
